﻿<%@ WebHandler Language="C#" Class="my_givelist01" %>

using System;
using System.Web;

public class my_givelist01 : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        string linkmanid = context.Request["linkmanid"].ToString();

        string giveman = "";
        TLinkmanGive oGive = new TLinkmanGive(linkmanid);
        oGive.Select();
        giveman += "{";
        giveman += "\"givelvl\":\"" + oGive.GiveLvl + "\",";
        giveman += "\"givetype\":\"" + oGive.GiveType + "\",";
        giveman += "\"givemag\":\"" + oGive.GiveMag + "\",";
        giveman += "\"giveqty\":\"" + oGive.GiveQty.ToString() + "\",";
        giveman += "\"givebdate\":\"" + oGive.GiveBDate.ToString("yyyy-MM-dd") + "\",";
        giveman += "\"giveedate\":\"" + oGive.GiveEDate.ToString("yyyy-MM-dd") + "\",";
        giveman += "\"giveexpl\":\"" + oGive.GiveExpl + "\"";
        giveman += "}";

        context.Response.ContentType = "text/plain";
        context.Response.Write(giveman);
        context.Response.End();
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}